/*
 *  $Id: HeavensLight.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Light.Spells {
    public class HeavensLight: SpellCard {
        public HeavensLight(): base("001_l_s_heavens_light") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Light;
            Value = 100;
            AddManaCost(ElementType.Light, 5);
            AddCondition(new MeditationCondition(5, true));
        }

        public override void DoAction(TargetArgs args) {
            args.Player.HealBy(NewDamage(args, DamageType.Health, args.Player.HealthToMax));
            foreach (Creature cr in args.Player.GetCreatures())
                cr.HealBy(NewDamage(args, DamageType.Health, cr.FullHealth));
        }
    }
}
